<?php
	include "inc/inc_header1.php"; // header
	include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/conn_db.php");
	include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/Utils.php");
	$pa = isset($_GET["pa"]) ? trim($_GET["pa"]) : 0;
	$max = Utils::getPaSize($pa);
	$str = Utils::getPaByCode($pa, $max);
?>
</head>
<body>
<!--
    <div class="list_wrap_s1">
        <table class="table_s1" width="100%">
            <tr>
                <th width="40">세(世)</th>
                <th width="57">휘(諱)</th>
                <th width="146">대파<br/>(大派)</th>
                <th width="40">세(世)</th>
                <th width="57">휘(諱)</th>
                <th width="140">중파<br/>(中派)</th>
                <th width="40">세(世)</th>
                <th width="57">휘(諱)</th>
                <th width="140">지파<br/>(小派)</th>
                <?php if($max>3){?><th width="40">세(世)</th>
                <th width="57">휘(諱)</th>
                <th width="140">지파<br/>(支派)</th><?php } ?>
				<?php if($max>4){?><th width="40">세(世)</th>
                <th width="57">휘(諱)</th>
                <th width="140">입향조<br/>(门中派)</th><?php } ?>
            </tr>
			<?php echo $str; ?>
        </table>
    </div>
-->

    <div class="list_wrap_s1" style="display:none">
		<div class = "design-grid-panel">
            <div class = "grid-container grid-header-left">
                <table id="header-right-table" style="width:520px;">
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <tr>
                        <th>세(世)</th>
                        <th>휘(諱)</th>
                        <th>대파<br/>(大派)</th>
                        <th>세(世)</th>
                        <th>휘(諱)</th>
                        <th>중파<br/>(中派)</th>
                        <th>세(世)</th>
                        <th>휘(諱)</th>
                        <th>지파<br/>(支派)</th>
                        <th>세(世)</th>
                        <th>휘(諱)</th>
                        <th>입향조<br/>(入鄕祖)</th>
                        <th>세(世)</th>
                        <th>휘(諱)</th>
                        <th>입향조<br/>(入鄕祖)</th>
                    </tr>
                </table>
            </div>
            <div class="grid-container grid-body-right" style="height:200px;overflow: auto;" onscroll = "onScrollDiv(this)" >
                <table id="body-right-table" width="520">
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c4"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c4"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c5"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c5"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c4"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c4"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c5"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c5"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c4"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c4"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c5"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c5"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c4"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c4"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c5"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c5"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c4"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c4"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c5"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c5"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c4"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c4"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c5"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c5"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div class="list_wrap_s1">
		<div class = "design-grid-panel">
            <div class = "grid-container grid-header-left">
                <table id="header-right-table" style="width:100%">
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <tr>
                        <th>세(世)</th>
                        <th>휘(諱)</th>
                        <th>대파<br/>(大派)</th>
                        <th>세(世)</th>
                        <th>휘(諱)</th>
                        <th>중파<br/>(中派)</th>
                        <th>세(世)</th>
                        <th>휘(諱)</th>
                        <th>지파<br/>(支派)</th>
                    </tr>
                </table>
            </div>
            <div class="grid-container grid-body-right" style="height:200px;overflow: auto;" onscroll = "onScrollDiv(this)" >
                <table id="body-right-table" width="100%">
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <col style="width:50px"></col>
                    <col style="width:80px"></col>
                    <col style="width:120px"></col>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                    <tr>
                        <td class="td_gb_c1"><div><span>10세</span></div></td>
                        <td class="td_f_c1"><div><span class="name">돈(敦)</span></div></td>
                        <td class="td_f_c1"><div><span>함안백파<br/>(咸安伯派)</span></div></td>
                        <td class="td_gb_c1"><div><span>15세</span></div></td>
                        <td class="td_f_c2"><div><span class="name">길(吉)</span></div></td>
                        <td class="td_f_c2"><div><span>한림공파<br/>(翰林公派)</span></div></td>
                        <td class="td_gb_c1"><div><span>17세</span></div></td>
                        <td class="td_f_c3"><div><span class="name">리(利)</span></div></td>
                        <td class="td_f_c3"><div><span>첨추공파</a><br/>(僉樞公派)</span></div></td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $('.list_wrap_s1 td').hover(
            function(){
                $('div',this).css('font-size',19)
            },
            function(){
                $('div',this).css('font-size',12)
            }
        )
        var headline  = $('#header-right-table');
        function onScrollDiv (div) {
            scrollLeft=parseInt(div.scrollLeft);
            scrollTop=parseInt(div.scrollTop);
            headline.css('left',-scrollLeft);
        }
    </script>
</body>
</html>
